<?php
require_once('./application/include/config.php');
require_once('./library/Pframework/Loader.php');

//db
load_PFmodel('ParseConfigIni.class.php');
$config_ini=new ParseConfigIni(APP_DIR.'/include/config.ini',null,true);

//注册存储器
load_PFmodel('Registry.class.php');
$registry = Pf_Registry::getInstance();
$registry->set('dbconfig',$config_ini->db->toArray());
$registry->set('dbfunction_addr',APP_DIR.'/include/db_config.php');
$registry->set('dbfunction','bierenshuo_get_db_config');

$frontcontroller = FrontController::getInstance();
$frontcontroller->setBaseUrl("http://www.bierenshuo.com");
$frontcontroller->route();
ob_end_flush();
?>